﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GuanYijia.DoMain.RBAC
{
    public class Permissions
    {
        [Key]
        //权限主键
        public int PermissionsId {  get; set; }
        //权限名称
        [StringLength(200)]
        public string? permission_name {  get; set; }
        //前端页面对应路径
        [StringLength(300)]
        public string? permission_url {  get; set; }

        public int? ParentId { get; set; }
        //权限描述
        [StringLength(200)]
        public string? permission_description {  get; set; }
        /// <summary>
        /// 是否是左边菜单
        /// </summary>
        public bool? IsMenu { get; set; }
    }
}
